{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fac6f18b",
   "metadata": {},
   "outputs": [],
   "source": [
    "height=float (input('请输入关于你的身高(m):')) #输入身高的一个操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9528856f",
   "metadata": {},
   "outputs": [],
   "source": [
    "weight=float(input('请输入关于你的体重(kg):')) #输入体重的一个操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b9a1096d",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ac8be5a6",
   "metadata": {},
   "outputs": [],
   "source": [
    "height=float (input('请输入关于你的身高(m):'))  #输入身高"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9371cac5",
   "metadata": {},
   "outputs": [],
   "source": [
    "weight=float(input('请输入关于你的体重(kg):'))  #输入体重"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "80c26392",
   "metadata": {},
   "outputs": [],
   "source": [
    "BMI=weight/(height*height)        #关于身高体重的公式"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9d00b50c",
   "metadata": {},
   "outputs": [],
   "source": [
    "print('你的BMI值为:',BMI)         #显示有关本人的BMI的值"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
